package io.gitee.yxsnake.framework.system.api;

import com.github.lianjiatech.retrofit.spring.boot.core.RetrofitClient;
import io.gitee.yxsnake.framework.core.domain.Result;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * @author snake
 * @description 配置服务
 * @since 2024/11/2 23:04
 */
@RetrofitClient(baseUrl = "${retrofit.pisces-system-server:http://pisces-system-server:21001/}")
public interface RemoteConfigService {

    /**
     * 获取注册开关
     * @param tenantId 租户id
     * @return true开启，false关闭
     */
    @GET(value = "inner/sysConfig/selectRegisterEnabled")
    Result<Boolean> selectRegisterEnabled(@Query("tenantId") String tenantId);

}